package com.makejl.util;

public class InformationMessage {

	/**
	 * Constant to define the name of resource bundle file for information messages
	 */
	public static final String BUNDLE_NAME_INFORMATION = "InformationMessages";

	private String bundleKey;
	private Object[] messageParameters;

	public String getBundleKey() {
		return bundleKey;
	}

	public void setBundleKey(String bundleKey) {
		this.bundleKey = bundleKey;
	}

	public Object[] getMessageParameters() {
		return this.messageParameters != null ? this.messageParameters.clone() : null;
	}

	public void setMessageParameters(Object[] messageParameters) {
		Object[] param = null;

		if (messageParameters != null)
			param = messageParameters.clone();

		this.messageParameters = param;
	}

	public InformationMessage(String bundleKey, Object[] messageParameters) {
		super();
		this.setBundleKey(bundleKey);
		this.setMessageParameters(messageParameters);
	}
}
